package com.hongyi.utils.stringutils;


import org.apache.commons.lang3.StringUtils;

/**
 * @Author: hongyi
 * @CreateTime: 2024-10-21
 */


public class StringUtilsExample {


    public static void main(String[] args) {
        String str = "hello world  ";

        // 去除空白字符
        String trimmed = StringUtils.trim(str);
        System.out.println("Trimmed: '" + trimmed + "'");

        // 判断是否为空
        boolean isEmpty = StringUtils.isEmpty(trimmed);

        System.out.println("Is empty: " + isEmpty);

    }
}
